home *** CD-ROM | disk | FTP | other *** search
/ Software 2000 / Software 2000 Volume 1 (Disc 1 of 2).iso / education / e101.dms / e101.adf / Geobase / GeoBase.AMOS / GeoBase.amosSourceCode
Encoding:
AMOS Source Code  |  1978-10-19  |  6.5 KB  |  320 lines

  1. '
  2. '
  3. '   GEOBASE - MAIN AMOS FILE 
  4. '  
  5. '   BY TONY KINGSMILL DECEMBER 1992 / JANUARY 1993 
  6. '
  7. '   THIS PROGRAM IS FREEWARE 
  8. '
  9. COUNTRIES=16
  10. C=COUNTRIES
  11. O=0
  12. Dim NAME$(C)
  13. Dim FULLNAME$(C)
  14. Dim CONT$(C)
  15. Dim AREA$(C)
  16. Dim REL$(C)
  17. Dim LAN$(C)
  18. Dim CAP$(C)
  19. Dim PRIM$(C)
  20. Dim HIGH$(C)
  21. Dim MOUNT$(C)
  22. Dim RIV$(C)
  23. Writing 2
  24. Screen Open 0,320,255,16,Lowres
  25. Paper 0 : Cls 
  26. Flash Off 
  27. Change Mouse 2
  28. Screen Open 1,640,255,8,Hires
  29. Paper 0 : Cls 
  30. Screen 0
  31. Screen To Front 0
  32. Curs Off 
  33. Load Iff "worldgeo:geobase/mainscreen"
  34. Open In 1,"worldgeo:geobase/Geobase.DAT"
  35. For A=1 To C
  36. Input #1,NAME$(A)
  37. Input #1,FULLNAME$(A)
  38. Input #1,CONT$(A)
  39. Input #1,AREA$(A)
  40. Input #1,REL$(A)
  41. Input #1,LAN$(A)
  42. Input #1,CAP$(A)
  43. Input #1,PRIM$(A)
  44. Input #1,HIGH$(A)
  45. Input #1,MOUNT$(A)
  46. Input #1,RIV$(A)
  47. Next A
  48. Close 1
  49. Wind Open 1,30,95,35,19,1
  50. TITLE:
  51. Window 1
  52. Clw 
  53. Pen 5
  54. Print "GeoBase"
  55. Pen 1
  56. Print 
  57. Print "By Tony Kingsmill - Dec 1992"
  58. Print 
  59. Print "While every effort has been"
  60. Print "to make this program accurate,"
  61. Print "I cannot be held responsible"
  62. Print "for incorrect data."
  63. Print 
  64. Print "This program is Freeware.."
  65. Print "PLEASE COPY ME!"
  66. Print 
  67. Pen 5
  68. Print "Press any key to continue.."
  69. Curs Off 
  70. Wait Key 
  71. Clw 
  72. Pen 1
  73. Print "Unfortunately I haven't had"
  74. Print "time up to now to enter"
  75. Print "information for all countries."
  76. Print "Furthermore, the recent changes"
  77. Print "in the former Soviet Union"
  78. Print "means I currently need new"
  79. Print "information. However, I shall"
  80. Print "be updating this program from"
  81. Print "time to time and you can"
  82. Print "receive an updated copy by"
  83. Print "sending me a disk and stamp."
  84. Pen 2
  85. Print "Write to: Tony Kingsmill, 2O2"
  86. Print "Park Street Lane, Park Street,"
  87. Print "St.Albans, Herts AL2 2AQ. (UK)"
  88. Print 
  89. Pen 5
  90. Print "Press any key to continue.."
  91. Curs Off 
  92. Wait Key 
  93. Clw 
  94. Pen 1
  95. Print "The aim of this program is to"
  96. Print "provide geographical infor -"
  97. Print "mation about countries of the"
  98. Print "world.Most of the information"
  99. Print "refers to physical aspects"
  100. Print "(eg: rivers,mountains) rather"
  101. Print "than human aspects, as these"
  102. Print "frequently become out of date."
  103. Print "GeoBase will allow you to"
  104. Print "display information either on"
  105. Print "screen or printer (you may"
  106. Print "need to copy your printer"
  107. Print "driver to the disk)."
  108. Print 
  109. Pen 5
  110. Print "Press any key to continue.."
  111. Curs Off 
  112. Wait Key 
  113. Clw 
  114. Pen 1
  115. Print "Also, be aware of variations of"
  116. Print "names, which may confuse"
  117. Print "Geobase. For example, to gain"
  118. Print "information about the United"
  119. Print "States, you need to enter USA."
  120. Print "For the Netherlands, you should"
  121. Print "enter Holland. To make life a"
  122. Print "little easier, GeoBase ignores"
  123. Print "small and large letters so, for"
  124. Print "instance, bRaZiL would be okay."
  125. Print 
  126. Pen 5
  127. Print "Press any key to continue.."
  128. Curs Off 
  129. Wait Key 
  130. Clw 
  131. Pen 1
  132. Print "At the prompt for a country,"
  133. Print "simply type in the name of the"
  134. Print "country you wish information"
  135. Print "for. As well as country names,"
  136. Print "you can enter one of three"
  137. Print "commands.. LIST : gives you a"
  138. Print "'shopping list' of all the"
  139. Print "countries available to you."
  140. Print "PRINTER : All data will be sent"
  141. Print "to printer."
  142. Print "SCREEN : All data is sent to"
  143. Print "screen. All data goes to screen"
  144. Print "as default, when you first load"
  145. Print "the program."
  146. Print 
  147. Pen 5
  148. Print "Press any key to continue.."
  149. Curs Off 
  150. Wait Key 
  151. '
  152. '
  153. MAIN:
  154. Window 1
  155. Clw 
  156. FLAG=0
  157. Pen 1
  158. Print 
  159. Print "Please enter your country or"
  160. Print "command..."
  161. Print 
  162. Input P$
  163. P$=Upper$(P$)
  164. If P$="PRINTER"
  165.      O=1
  166.      Print "Output will go to printer."
  167.      Wait 45
  168.      FLAG=1
  169.    End If 
  170. If P$="SCREEN"
  171.      O=0
  172.      Print "Output will go to screen."
  173.      Wait 45
  174.      FLAG=1
  175.    End If 
  176. If P$="HELP"
  177.      Print 
  178.      Print "Commands:"
  179.      Print "SCREEN: select screen."
  180.      Print "PRINTER: select printer."
  181.      Print "HELP: This page."
  182.      Print "ABOUT: More info."
  183.      Print "LIST: Show countries."
  184.      Print "Entering a country name will"
  185.      Print "show information,"
  186.      Print "providing country is available."
  187.      Print 
  188.      Centre "<<press a key>>"
  189.      Curs Off : Wait Key 
  190.      FLAG=1
  191.    End If 
  192. If P$="ABOUT"
  193.     FLAG=1
  194.     Goto TITLE
  195.    End If 
  196. If P$="LIST"
  197.     Gosub LIST
  198.     FLAG=1
  199.    End If 
  200. For E=1 To C
  201.   If P$=NAME$(E)
  202.     FLAG=1
  203.     If O=0
  204.       Gosub SCRDISPLAY
  205.      End If 
  206.     If O=1
  207.       Gosub PRTDISPLAY
  208.      End If 
  209.    End If 
  210. Next E
  211. If FLAG=0
  212.   Print : Print "Sorry, either you entry"
  213.   Print "was spelt the wrong way, or"
  214.   Print "the data is not available on"
  215.   Print "your selected country."
  216.   Print 
  217.   Centre "<<press any key>>"
  218.   Curs Off : Wait Key 
  219. End If 
  220. Goto MAIN
  221. '
  222. '
  223. LIST:
  224. Screen 1
  225. Screen To Front 1
  226. Cls 
  227. Pen 1
  228. Print "List of Countries available:"
  229. Print 
  230. T=0
  231. For R=1 To C
  232. Inc T
  233. Print NAME$(R)
  234. If T=20
  235.   Wait Key 
  236.   T=0
  237.  End If 
  238. Next R
  239. Print : Print "Press any key to return to main screen"
  240. Wait Key 
  241. Screen 0
  242. Screen To Front 0
  243. Return 
  244. '
  245. SCRDISPLAY:
  246. Screen 1
  247. Screen To Front 1
  248. Cls 
  249. Pen 2
  250. Print 
  251. Print NAME$(E)
  252. Print "--------------------------------------------------"
  253. Print "OFFICIAL NAME:"
  254. Print FULLNAME$(E)
  255. Print : Print "WORLD REGION:" : Print CONT$(E) : Print : Print "AREA:" : Print AREA$(E)
  256. Print : Print "PRIMARY RELIGIONS:" : Print REL$(E) : Print 
  257. Print 
  258. Pen 1 : Locate 1,15 : Centre "Press a key for more"
  259. Pen 2
  260. Curs Off 
  261. Wait Key 
  262. Locate 1,15 : Centre "                    "
  263. Print 
  264. Print "MAIN LANGUAGES:" : Print LAN$(E) : Print 
  265. Print "CAPITAL CITY" : Print CAP$(E) : Print 
  266. Print "PRIMARY CITIES" : Print PRIM$(E) : Print 
  267. Print "HIGHEST POINT" : Print HIGH$(E) : Print 
  268. Print "MAIN MOUNTAIN RANGES:" : Print MOUNT$(E)
  269. Print : Print "PRIMARY RIVERS" : Print RIV$(E) : Print 
  270. Pen 1
  271. Centre "<< Press any key to return to main screen >>"
  272. Curs Off 
  273. Wait Key 
  274. Screen 0
  275. Screen To Front 0
  276. Return 
  277. '
  278. '
  279. PRTDISPLAY:
  280. Print 
  281. Print "Info. now going to printer.."
  282. Lprint "-------------------------------------------------"
  283. Lprint "GeoBase v1.0  -  Geographical Information Program"
  284. Lprint "-------------------------------------------------"
  285. Lprint 
  286. Lprint NAME$(E)
  287. Lprint "-------------------------------------------------"
  288. Lprint "Official Name:"
  289. Lprint FULLNAME$(E)
  290. Lprint 
  291. Lprint "World Region:"
  292. Lprint CONT$(E)
  293. Lprint 
  294. Lprint "Area:"
  295. Lprint AREA$(E)
  296. Lprint 
  297. Lprint "Primary Religions:"
  298. Lprint REL$(E)
  299. Lprint 
  300. Lprint "Main Languages:"
  301. Lprint LAN$(E)
  302. Lprint 
  303. Lprint "Capital City:"
  304. Lprint CAP$(E)
  305. Lprint 
  306. Lprint "Primary Cities:"
  307. Lprint PRIM$(E)
  308. Lprint 
  309. Lprint "Highest Point:"
  310. Lprint HIGH$(E)
  311. Lprint 
  312. Lprint "Main Mountain Ranges:"
  313. Lprint MOUNT$(E)
  314. Lprint 
  315. Lprint "Primary Rivers:"
  316. Lprint RIV$(E)
  317. Lprint 
  318. Lprint "-------------------------------------------------"
  319. Lprint 
  320. Return